var dataSource = {
    allList: [
        {
            img: './img/list-1.png',
            title: "国内三甲医院专家挂号（单次）",
            features: [
                "服务可前退",
                "服务前可改约",
                "可积分抵现",
                "过期退"
            ],
            price: "300元",
            O_price: "原价：450元"

        },
        {
            img: './img/list-2.png',
            title: "国内三甲医院专家挂号+陪诊（单次）",
            features: [
                "服务可前退",
                "服务前可改约",
                "可积分抵现",
                "过期退"
            ],
            price: "600元",
            O_price: false

        },
        {
            img: './img/list-3.png',
            title: "国内三甲医院普通号挂号（单次，如有）",
            features: [
                "服务可前退",
                "服务前可改约",
                "可积分抵现",
                "过期退"
            ],
            price: "188元",
            O_price: false

        },
        {
            img: './img/list-4.png',
            title: "国内三甲医院普通号挂号+陪诊（单次）",
            features: [
                "服务可前退",
                "服务前可改约",
                "可积分抵现",
                "过期退"
            ],
            price: "488元",
            O_price: false

        }
    ],
    allListHtml:function () {
        var length = this.allList.length;
        var value = this.allList;
        var htmlContent = '';
        for(var i =0;i<length;i++){
            var o_price = value[i].O_price?value[i].O_price:'';
            htmlContent += "<a class='list_container clear' href='/pages/details/details.html?id="+i+"' data-no-cache='true'><div class='img_container'><img src='" + value[i].img
                + "'/></div><div class='content_container'><h3>" + value[i].title + "</h3><div class='features_container'><div class='clear'><p>" + value[i].features[0] + "</p>" +
                "<p>" + value[i].features[1] + "</p></div><div class='clear'><p>" + value[i].features[2] + "</p><p>" + value[i].features[3] + "</p></div></div><div class='price_container'><span class='n_price'>" + value[i].price + "</span><span class='o_price'>" +o_price+ "</span></div></div></a>";
        };
        return htmlContent;
    }
};